package 实验三;

public class Person {
	    private String id;
	    private String name;
	    private String gender;

	    // 父类构造方法
	    public Person(String id, String name, String gender) {
	        this.id = id;
	        this.name = name;
	        this.gender = gender;
	    }

	    // 父类业务方法：打印基本信息
	    public void printBasicInfo() {
	        System.out.println("编号：" + id + "，姓名：" + name + "，性别：" + gender);
	    }

	    // Getter 方法（供子类访问私有属性）
	    public String getId() {
	        return id;
	    }

	    public String getName() {
	        return name;
	    }

	    public String getGender() {
	        return gender;
	    }
	}